package com.dx.spring6_15.scope;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {

	public static void main(String[] args) {

		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("com/dx/spring6_15/scope/socpeWorldApplicationContext.xml");
		
		Address address1 = (Address)ctx.getBean("address1");
		Address address2 = (Address)ctx.getBean("address1");
		
		System.out.println( address1 == address2 );
		
	}
}
